<template>
  <view class="myUser">
    <my-login v-if="!token"></my-login>
    <my-userInfo v-else></my-userInfo>
  </view>
</template>

<script>
  import {mapState} from 'vuex'
  import cartBadge from '@/mixins/tabbar-badge.js'
  export default {
    mixins:[cartBadge],
    data() {
        return {

        }
      },
      computed:{
        ...mapState('m_user',['token'])
      },
      methods: {

      }
  }
</script>

<style>
page,.myUser{
  height: 100%;
}
</style>
